import {commonParams,options} from './config'
import jsonp from 'assets/js/jsonp'
import axios from 'axios'


 export function getLyric(mid) {
  const url = '/api/getLyric'

  const data = Object.assign({}, commonParams, {
    nobase64:1,
	musicid:mid,
	songtype:0,
	callback:'jsonp1'
  })

  return axios.get(url, {
    params: data
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}